Imports OMANE.Common.UI
Imports System.Collections.ObjectModel
Imports System.Windows
Imports Infragistics.Windows.Chart
Imports System.Windows.Controls
Imports System.ComponentModel


''' <summary>
''' 
''' </summary>
''' <remarks></remarks>
<Serializable()> _
Public Class VMDashboardLayoutDefinition
    Inherits ViewModelBase

    Friend _Sealed As Boolean
    Friend Validated As Boolean

    Friend Sub New()

    End Sub
    Friend Sub New(ByVal ColumnCount As Integer, ByVal RowCount As Integer)
        _ColumnCount = ColumnCount
        _RowCount = RowCount
        _Sealed = True
    End Sub

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Public Property Name As String

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Public ReadOnly Property Sealed As Boolean
        Get
            Return _Sealed
        End Get
    End Property

    Private _ColumnCount As Integer = 1
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Public Property ColumnCount As Integer
        Get
            Return _ColumnCount
        End Get
        Set(ByVal value As Integer)
            If Sealed Then Return
            OnPropertyChanging("ColumnCount")
            _ColumnCount = value
            OnPropertyChanged("ColumnCount")
        End Set
    End Property

    Private _RowCount As Integer = 1
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Public Property RowCount As Integer
        Get
            Return _RowCount
        End Get
        Set(ByVal value As Integer)
            If Sealed Then Return
            OnPropertyChanging("RowCount")
            _RowCount = value
            OnPropertyChanged("RowCount")
        End Set
    End Property

End Class
